package cn.xfdzx.android.apps.shop.model;


import cn.xfdzx.android.apps.shop.bean.ShopInOrderAfterSalesListBeen;
import cn.xfdzx.android.apps.shop.bean.ShopInPiFaOrderAfterSalesListBeen;
import cn.xfdzx.android.apps.shop.bean.ShopOrderListBeen;
import cn.xfdzx.android.apps.shop.contract.ShopInOrderAfterSalesListContract;
import cn.xfdzx.android.apps.shop.contract.ShopInOrderListContract;
import cn.xfdzx.android.apps.shop.net.RetrofitClient;
import io.reactivex.Flowable;

/**
 * @author azheng
 * @date 2018/6/4.
 * Description：
 */
public class ShopInOrderAfterSalesListModel implements ShopInOrderAfterSalesListContract.Model {



    @Override
    public Flowable<ShopInOrderAfterSalesListBeen> initData(String storeId, String salesMode, String status, String keyWord, String page, String limit) {
        return RetrofitClient.getInstance().getApi().shopInOrderAfterSalesList(storeId,salesMode,status,keyWord,page,limit);
    }

    @Override
    public Flowable<ShopInPiFaOrderAfterSalesListBeen> initPifaData(String storeId, String keyWord, String page, String limit) {
        return RetrofitClient.getInstance().getApi().shopInPiFaOrderAfterSalesList(storeId ,keyWord,page,limit);
    }

}
